﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FAP.DataAccess.BLL;

namespace FAP.DataAccess
{
    public class TaiKhoanDAO
    {
        private static FAPDataContext m_context;

        public static taikhoan GetTaiKhoan(int webid, string username, string pass)
        {
            m_context = new FAPDataContext();
            taikhoan obj_tk = new taikhoan();
            obj_tk = (from tk in m_context.taikhoans
                       where tk.websiteid == webid && tk.matkhau == pass && tk.tendangnhap == username
                       select tk).Single();
            return obj_tk;
        }
    }
}
